package com.hebeiwangxiaozhang.product.testing;

import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestingService {

    @Autowired
    TestingRepo testingRepo;

    @GlobalTransactional
    public void testing() {
        testingRepo.save(TestingTable.builder().age(11l).build());
        int i = 1/0;
    }
}
